﻿<Window x:Class="XPathAutoSuggest.HelpLinks"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="HelpLinks" Height="200" Width="500"
    WindowStartupLocation="CenterScreen">
    <Grid Background="{StaticResource GradientBrsh}">
        <Grid.RowDefinitions>
            <RowDefinition  Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
            <ColumnDefinition Width="120" />
        </Grid.ColumnDefinitions>

        <Border Style="{StaticResource header}" Grid.ColumnSpan="3" Grid.Row="0">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
                <Image HorizontalAlignment="Left" Margin="3 1 45 1"  VerticalAlignment="Top" Source="/XPathAutoSuggest;component/Images/XPath40TruncMOre.jpg" />
                <TextBlock  Text="XPath Web Links" HorizontalAlignment="Center" />
                </StackPanel>
        </Border>

        <TextBlock Grid.Row="1" Grid.ColumnSpan="3" Text="These links are helpful explaining XPath" FontSize="16" />
        
        <Label Grid.Row="2" Target="{Binding ElementName=lnkMicrosoft}" Content="_Microsoft XPath Examples:" />
        <TextBlock Name="lnkMicrosoft" TextWrapping="Wrap" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2"
                   Margin="2 5"                   >
            <Hyperlink Command="{Binding GoLinksCommand}" CommandParameter="http://msdn.microsoft.com/en-us/library/ms256086.aspx" >
                <Run Text="http://msdn.microsoft.com/en-us/library/ms256086.aspx" />
            </Hyperlink>
        </TextBlock>

        <Label Grid.Row="3" Target="{Binding ElementName=lnkW3Schools}" Content="W3 Schools XPath Tutorial:" />
        <TextBlock Name="lnkW3Schools" TextWrapping="Wrap" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2"
                   Margin="2 5">
            <Hyperlink Command="{Binding GoLinksCommand}" CommandParameter="http://w3schools.com/xpath/default.asp" >
                <Run Text="http://w3schools.com/xpath/default.asp" />
            </Hyperlink>
        </TextBlock>
        
        <Button Grid.Column="2" Grid.Row="4" Content="_OK" Command="{Binding CloseLinksCommand}" />
    </Grid>
</Window>
